//
//  GLLiveShareView.swift
//  GLUZSwift
//
//  Created by xyanl on 2025/7/24.
//

import UIKit
import Reusable

extension GLLiveShareView: NibLoadable {}

class GLLiveShareView: UIView {

    @IBOutlet weak var imageView: UIView!
    
    var closeHandler: (() -> Void)?
    var shareHandler: (() -> Void)?
    
    override func awakeFromNib() {
        super.awakeFromNib()
        
        imageView.addRoundedCorners(radius: 22)
        
        size = CGSize(width: xScreenW, height: 152 + xIphoneBottomSafeHeight)
        
        addRoundedCorners(corner: [.topLeft, .topRight], cornerRadius: 24, frame: bounds)
        
    }

    @IBAction func closeAction(_ sender: Any) {
        closeHandler?()
    }
    
    @IBAction func shareAction(_ sender: Any) {
        shareHandler?()
    }
}
